package com.wondertek.service.sdk.iotdh.dto.req.network;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author xxx
 * @Date 2024/9/6 10:26
 */
@Data
public class Network {

    @Schema(name = "physicalAddress",description = "MAC地址")
    private String physicalAddress;

    @Schema(name = "mtu",description = "最大网络传输单元数")
    private Integer mtu;

    @Schema(name = "networkTransmissionMode",description = "⽹络传输模式adapt-⾃适应(默认值)；\n" +
            "half10M-10M半双⼯；\n" +
            "full10M-10M全双⼯；\n" +
            "half100M-100M半双⼯；\n" +
            "full100M-100M全双⼯；\n" +
            "full1000M-1000M全双⼯；\n" +
            "longPoE10M-⻓距离\n" +
            "PoE10M； longPoE100M-⻓\n" +
            "距离PoE 100M")
    private String networkTransmissionMode;

    @Schema(name = "type",description = "⽹⼝类型")
    private String type;

    @Schema(name = "ipAddress",description = "ip地址")
    private String ipAddress;

    @Schema(name = "subNetworkMask",description = "⼦⽹掩码")
    private String subNetworkMask;

    @Schema(name = "defaultGateway",description = "默认⽹关")
    private String defaultGateway;

    @Schema(name = "dhcpEnable",description = "是否开启dhcp（动态主机配置协议）")
    private boolean dhcpEnable;

    @Schema(name = "enableDhcpReservedIp",description = "dhcp失败时，是否使⽤保留ip")
    private boolean enableDhcpReservedIp;

    @Schema(name = "dnsAutoGet",description = "dns获取⽅式")
    private boolean dnsAutoGet;

    @Schema(name = "dnsServers",description = "dns服务器地址列表")
    private List<String> dnsServers;

}
